/**
 * 
 */
package qy.jalgotrade.optimizer.xmlrpc;

/**
 * @author c-geo
 *
 */
public interface JobManager {

	/**
	 * 
	 * @return
	 */
	public byte[] getInstrumentsAndBars();

	/**
	 * 
	 * @return
	 */
	public String getBarsFrequency();

	/**
	 * 
	 * @return
	 */
	public byte[] getNextJob();

	/**
	 * 
	 * @param jobId
	 * @param jobResults
	 * @param bestResult
	 * @param bestParams
	 * @param workerName
	 */
	public void pushJobResults(int jobId, byte[] jobResults, byte[] bestResult, String workerName);
}
